package com.changgou.system.dao;


import com.changgou.system.pojo.Admin;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;


public interface AdminMapper extends Mapper<Admin> {

    //数据库中查询到的管理员数据
    @Select("select * from tb_admin where login_name = #{login_name}")
    Admin findByUsername(@Param("login_name") String loginName);
}
